import request from '@/utils/request'

//获取指定学校
export const getSchoolListService = (name) => {
  return request({
    method: 'GET',
    url: '/user/schoollist',
    params: {
      name: name,
    },
  })
}

export const fetchSchoolList = async (query = '') => {
  const response = await getSchoolListService(query)
  return response.data.data || []
}
